<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   <script>
        var score =Number(prompt("请输入你的分数"));
        switch(score){
                case 100:
                console.log("满分");
                break;
                case 80:
                console.log("良好");
                break;
                case 60:
                console.log("及格");
                break;
        }
   </script>
</body>
</html>